<?php

$form = $this->form;
$form->setAttribute('action', $this->url('admin/child', array('controller'=>'user','action' => 'add')));
$form->prepare();

?>
<div class="row-fluid sortable ui-sortable">
    <div class="box span12">
        <div class="box-header well">
            <div class="box-icon">
            <a href="<?php echo $this->url('admin/child', array('controller'=>'user','action'=>'add')) ?>" class="btn btn-setting btn-round"><i class="icon16  icon-add"></i></a>
            <a href="<?php echo $this->url('admin/child', array('controller'=>'user','action'=>'index')) ?>" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
            </div>
        </div>
        <div class="box-content">
            <legend>Add New User</legend>
<?php
echo $this->form()->openTag($form);

echo $this->formHidden($form->get('id'));
echo '<div class="control-group" >';
echo '<label class="control-label" for="typeahead">Name: </label>';
echo '<div class="controls">';
echo $this->formRow($form->get('name'));
echo '</div>';
echo '</div>';
echo '<div class="control-group" >';
echo '<label class="control-label" for="typeahead">Email: </label>';
echo '<div class="controls">';
echo $this->formRow($form->get('email'));
echo '</div>';
echo '</div>';
echo '<div class="control-group">';
echo '<label class="control-label" for="typeahead">Address: </label>';
echo '<div class="controls" >';
echo $this->formRow($form->get('address'));
echo '</div>';
echo '</div>';

echo '<div class="control-group" >';
echo '<label class="control-label" for="typeahead">Phone: </label>';
echo '<div class="controls">';
echo $this->formRow($form->get('phone'));
echo '</div>';
echo '</div>';

echo '<div class="control-group" >';
echo '<label class="control-label" for="typeahead">PassWord: </label>';
echo '<div class="controls">';
echo $this->formRow($form->get('password'));
echo '</div>';
echo '</div>';

echo '<div class="control-group" >';
echo '<label class="control-label" for="typeahead">Status</label>';
echo '<div class="controls">';

echo $this->formRow($form->get('status'));
echo '</div>';
echo '</div>';

echo '<div class="control-group" >';
echo '<label class="control-label" for="typeahead">User type</label>';
echo '<div class="controls">';
echo $this->formRow($form->get('user_type'));
echo '</div>';
echo '</div>';

echo '<div class="form-actions" >';
echo '<div class="">';

echo $this->formSubmit($form->get('submit'));
echo '</div>';
echo '</div>';


echo $this->form()->closeTag();
?>
        </div>
</div>
</div>